﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Silverlight.Arcgis.MapTip.GetDate
{
    /// <summary>
    /// 得到数据的事件
    /// </summary>
    public class GetDateEventArgs:EventArgs
    {
        /// <summary>
        /// 得到的数据
        /// </summary>
        private object data;

        /// <summary>
        /// 得到的数据
        /// </summary>
        public object Data
        {
            get { return data; }

        }

        /// <summary>
        /// 当前下载的进度
        /// </summary>
        private double progress = 0;

       
        /// <summary>
        /// 当前进度
        /// </summary>
        public double Progress
        {
            get { return progress; }
            set { progress = value; }
        }



        /// <summary>
        /// 得到数据
        /// </summary>
        /// <param name="data">当前的数据.可以是Null</param>
        /// <param name="progress">当前处理的进度默认为0</param>
        public GetDateEventArgs(object data, double progress)
        {
            this.data = data;
            this.progress = progress;
        }
    }
}
